package main

import (
	"fmt"
	"github.com/gofiber/fiber/v2"
	"go_test/config"
	"go_test/core"
	"go_test/middleware"
	"go_test/models"
	"go_test/routers"
)

// TIP <p>To run your code, right-click the code and select <b>Run</b>.</p> <p>Alternatively, click
// the <icon src="AllIcons.Actions.Execute"/> icon in the gutter and select the <b>Run</b> menu item from here.</p>

func main() {
	// Initialize a new Fiber app
	app := fiber.New()
	core.InitSeed()
	config.InitConfig()
	models.InitIosDevices()
	app.Static("/", "./static")
	app.Use(middleware.LoggerPrint())
	routers.SetupRoutes(app)
	app.Listen(fmt.Sprintf(":%d", config.HTTPPort))
}
